<?php
/* @var $this OccupationController */
/* @var $model Occupation */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'occupation-form',
	// Please note: When you enable ajax validation, make sure the corresponding
	// controller action is handling ajax validation correctly.
	// There is a call to performAjaxValidation() commented in generated controller code.
	// See class documentation of CActiveForm for details on this.
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'occupation_name'); ?>
		<?php echo $form->textField($model,'occupation_name',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'occupation_name'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'occupation_type'); ?>
			<select name="type">
<option value="Agricultural occupations">Agricultural occupations</option>
<option value="Arts occupations">Arts occupations</option>
<option value="Business and financial operations occupations">Business and financial operations occupations</option>
<option value=" Cleaning and maintenance occupations"> Cleaning and maintenance occupations</option>
<option value="Construction and extraction occupations">Construction and extraction occupations</option>
<option value="Consulting occupations">Consulting occupations</option>
<option value="Design occupations">Design occupations</option>
<option value="Education and training occupations">Education and training occupations</option>
<option value="Engineering occupations">Engineering occupations</option>
<option value="Entertainment occupations">Entertainment occupations</option>
<option value="Fashion occupations">Fashion occupations</option>
<option value="Government occupations">Government occupations</option>
<option value="Healthcare occupations">Healthcare occupations</option>
<option value="Hospitality occupations?">Hospitality occupations</option>
<option value="Industrial occupations">Industrial occupations</option>
<option value="Lawyers by type">Lawyers by type</option>
<option value="Management occupations">Management occupations</option>
<option value="Media occupations">Media occupations</option>
<option value="Military occupations">Military occupations</option>
<option value="Political occupations">Political occupations</option>
<option value="Religious occupations">Religious occupations</option>
<option value="Science occupations">Science occupations</option>
<option value="Transport occupations">Transport occupations</option>




		<?php echo $form->error($model,'occupation_type'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->